package t4;

public class demo1 {
    public static void main(String[] args) {
    String s ="D:\\javacode\\ch7\\src\\Demo1.java";
    int a = s.lastIndexOf("\\")+1;
    String b=s.substring(a);
    System.out.println(b);
}
}
